import React from 'react'
import BaseFilter, {filterCodes} from "../Base/BaseFilter";
import BaseFormItem from "../Base/BaseFormItem";

class ComboBoxFilterBase extends BaseFilter {

    comboData = [
        filterCodes.eq, filterCodes.noEq, filterCodes.noNull, filterCodes.null
    ];

    getCompProps(moreProps = {}) {
        return {
            ...moreProps,
            allowClear: true
        }
    }
}

export default class ComboBoxFilter extends BaseFormItem {
    Comp = ComboBoxFilterBase;
}